import http from '@/utils/request'


export function getMyAddress() {
	return http.get('/user/address/all')
}

export function addMyAddress(params) {
	return http.post('/user/address/add', params)
}

export function getMyAddressById(id) {
	return http.get('/user/address/byid/' + id)
}

export function delMyAddress(id) {
	return http.delete('/user/address/' + id)
}

export function editMyAddress(params) {
	return http.put('/user/address/edit',params)
}

export function setDefault(id) {
	return http.get('/user/address/setdefault/' + id)
}